
class Cursor < DrawableObject
  
  attr_reader :x, :y
  
  def initialize
    super(Images[:cursor_target_disabled])
    $game.cursor = self
    $game.objects << self
  end
  
  def cursor_image= (image)
    @image = image
  end
  
  def update
    super
    @x = $game.mouse_x
    @y = $game.mouse_y
  end
  
  def pos
    vect(@x, @y)
  end
  
  # override draw so our position isn't derived from the camera
  def draw
    @image.draw_rot(@x, @y, ZOrder::GUI, 0)
  end
  
end
